package com.zyl.blog.dao;

import com.zyl.blog.pojo.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 14323
 * @date 2020/8/11 17:07
 */
public interface CommentRepository extends JpaRepository<Comment,Long> {

    //查询所有父级评论
    List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
